<?php
namespace app\common\config\model;


use think\Model;
use think\model\concern\SoftDelete;

class ConfigStore extends Model
{
    use SoftDelete;
    protected $defaultSoftDelete = 0;

    public function getHallAmountAttr($value, $data) {
        $model = new ConfigHall();
        return $model->where('store_id', $data['id'])->count();
    }

    public function getBanquetAmountAttr($value, $data) {
        $model = new ConfigBanquet();
        return $model->where('store_id', $data['id'])->count();
    }
}